/**
 * Created by Administrator on 2018/6/19.
 */
var $$scope = {};
var $CertusFormAjax = {};
var $$filter;
var $CertusJsonAjax = {};
var $fileListService = {};
function initRoutered(CertusFormAjax, $routeParams, $scope, CertusJsonAjax, $http, fileListService,backlogPersonList,$filter) {
    $$filter = $filter;

    if ($routeParams.scId != null && $routeParams.scId != "") {
        CertusFormAjax.ajax("scheduleForward", {"tid": $routeParams.scId}, function (res) {
            var routerxx = "'templates/workflow/scheduled/" + res.data.templageUrl + "/" + res.data.pageUrl + ".html'";
            // //查询 待办 是否 已经办理
            // CertusFormAjax.ajax("validateProcess",{processInstanceId:res.data.processInstanceId,stepInstanceId:res.data.stepInstanceId},function(res){
            //     if(res.data){
            //         if(res.data == "isOld"){
            //             $http({
            //                 url: "templates/hasDisposed.html",
            //                 method: 'GET',
            //                 data: {},
            //                 dataType: "application/json"
            //             }).then(function (a) {
            //                 $scope.htmlxx = a.data
            //             }, function (b) {
            //             })
            //             return;
            //         }
            //     }
            // })

            CertusJsonAjax.setWorkflowInfo(res.data.processInstanceId, res.data.stepInstanceId);
            $http({
                url: "templates/workflow/scheduled/" + res.data.templageUrl + "/" + res.data.pageUrl + ".html",
                method: 'GET',
                data: {},
                dataType: "application/json"
            }).then(function (a) {
                $scope.htmlxx = a.data
                $$scope = $scope;
                $CertusFormAjax = CertusFormAjax;
                $CertusJsonAjax = CertusJsonAjax;
                $fileListService = fileListService;
                $backlogPersonList = backlogPersonList;
            }, function (b) {
            })
        })
    }
}
